#include using namespace std; void main() { //array //int numbers[10000] = {}; // // numbers is list 0f 10 integers (400 bytes) // // indices 0 - 9 (subscripts) ////for(int i = 0; i < 10; i++) ////{ //// cout << "Enter number " << i + 1 << ": "; //// cin >> numbers[i]; ////} //for(int i = 0; i < 10; i++) //{ // cout << "Number " << i + 1 << " = " << numbers[i] << endl; //} int rollCounts[13] = {}; for(int i = 0; i < 1000000000; i++) { int dieRoll = (rand()%6) + (rand()%6) + 2; rollCounts[dieRoll] = rollCounts[dieRoll] + 1; } //double n; //cin >> n; //int whole = n; //int decimal = (n-whole)*100; //int hundreds = whole/100; //whole -= hundreds * 100; //int tens = whole/10; //whole -= tens * 10; //int ones = whole; //cout << "Hundreds = " << hundreds << endl; //cout << "Tens = " << tens << endl; //cout << "Ones = " << ones << endl; //cout << "Decimal = " << decimal << endl; }